When Claude Code (or Claude Desktop) creates a git worktree, it registers a new project entry in ~/.claude.json — but the parent project's local-scoped MCP servers don't carry over. This means you have to manually reconfigure MCP servers for every new worktree session.
This solution uses a macOS launchd agent that watches ~/.claude.json for changes and automatically copies MCP server config from the parent project to any new worktree.
mcpServers— your MCP server configurationsdisabledMcpServers— which servers are disabled